package hpp.test;

/**
 * Created by hpp on 2017/8/18.
 */
public class Sta {
//    静态属性-静态代码块-非静态属性-构造方法
    public static long date=System.currentTimeMillis();//1
    public int da=1;//3,5
    static{
        System.out.println("Sta:"+System.currentTimeMillis());//2
    }
    public Sta(){
        System.out.println("构造函数："+System.currentTimeMillis());//4,6
    }
    static class st{
        public static long date=System.currentTimeMillis();//8
    }
    public long getDate(){
        return st.date;//7,9
    }
    public static void main(String[] args) throws Exception{
        Sta t=new Sta();
        Sta t1=new Sta();
        System.out.println(t.getDate());
        Thread.sleep(1000);
        System.out.println(t1.getDate());
    }
}